import {defineStore} from 'pinia'

export const useUserStore = defineStore("USER",{
    state() {
        return {
            isCollapse: false,
            name: '景天',
            age: 18,
            name1: '胡歌',
            age1: 36
        }
    },
    // 和vuex一样
    getters: {

    },
    // 和vuex一样
    actions: {
        setCollapse(state) {
            this.isCollapse = state
        }
    }
})
